package com.example.room.dao;

import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;

import com.example.room.entity.Master;
import com.example.room.entity.TeamMember;

import java.util.List;
@Dao
public interface TeamMemberDao {
    @Query("SELECT * FROM TeamMember")
    LiveData<List<TeamMember>> getAllTeamMember();

    @Query("delete from TeamMember")
    void deleteAll();

    @Insert
    void insertTeamMember(TeamMember... teamMembers);
}
